#include "ProgressBar.h"

void DownLoad(double total, double speed)
{
    double current = 0;
    while(current <= total)
    {
        current += speed;
        if(current >= total)
        {
            current = total;
            FlushProgressBar(total, current);
            break;
        }
        FlushProgressBar(total, current);
        usleep(50000);
    }
}


int main()
{
    DownLoad(1024, 5);

    //ProgressBar();

    return 0;
}
